package com.xxxy.jsq.model;

import java.io.Serializable;
import java.sql.Timestamp;

public class Term implements Serializable {
    private Long termId;          // 学期ID
    private String termName;      // 学期名称
    private String termFlag;      // 状态标识(0-当前,1-非当前)
    private Integer termOrder;    // 排序
    private Timestamp termStmp;   // 时间戳

    // 无参构造方法
    public Term() {
    }

    // 全参构造方法
    public Term(Long termId, String termName, String termFlag,
                Integer termOrder, Timestamp termStmp) {
        this.termId = termId;
        this.termName = termName;
        this.termFlag = termFlag;
        this.termOrder = termOrder;
        this.termStmp = termStmp;
    }

    // Getter和Setter方法
    public Long getTermId() {
        return termId;
    }

    public void setTermId(Long termId) {
        this.termId = termId;
    }

    public String getTermName() {
        return termName;
    }

    public void setTermName(String termName) {
        this.termName = termName;
    }

    public String getTermFlag() {
        return termFlag;
    }

    public void setTermFlag(String termFlag) {
        this.termFlag = termFlag;
    }

    public Integer getTermOrder() {
        return termOrder;
    }

    public void setTermOrder(Integer termOrder) {
        this.termOrder = termOrder;
    }

    public Timestamp getTermStmp() {
        return termStmp;
    }

    public void setTermStmp(Timestamp termStmp) {
        this.termStmp = termStmp;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "Term{" +
                "termId=" + termId +
                ", termName='" + termName + '\'' +
                ", termFlag='" + termFlag + '\'' +
                ", termOrder=" + termOrder +
                ", termStmp=" + termStmp +
                '}';
    }
}